# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=pdpmake
pkgver=1.4.1
pkgrel=2
pkgdesc="An implementation of POSIX make"
url="https://frippery.org/make/"
arch="all"
license="Public Domain"
makedepends="$depends_dev"
source="https://frippery.org/make/pdpmake-$pkgver.tgz
	0001-Fix-.DEFAULT-rule-for-prerequisites.patch
	0002-Flush-stdout-after-writing-command-string-to-it.patch"

build() {
	make PREFIX=/usr
}

check() {
	MAKEFLAGS="" make test
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
095d396d34860b94f0aa159c3993eeb0d1eb490b90f7bf77cf03d1ea00d5544e954ddc693ca0a4a5be7e4b5f1d7ba856ebd304a7671ae104ba3c6b98aa599d5e  pdpmake-1.4.1.tgz
621bad4dff47d28d178922f5d15d7dea987381e082122fe09213b49bb6635878c6ee8bc60c8390cbf6718b98b0de8eb0f57a9de3070ed06e7e6824176fbdef39  0001-Fix-.DEFAULT-rule-for-prerequisites.patch
1fc199df9aaf3e533b2079bd9d37b6c6968381ed73c4e81049c00ba7e91b51b904c279c5c380c4a43e05bb8e863d6d73f57c08826181c75a00d9081e800f6449  0002-Flush-stdout-after-writing-command-string-to-it.patch
"
